// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.liuxinlong.modules.dao.MaterialResumeDao;
import com.liuxinlong.modules.entity.MaterialResume;
import com.liuxinlong.modules.mapper.MaterialResumeMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class MaterialResumeDaoImpl extends ServiceImpl<MaterialResumeMapper, MaterialResume> implements MaterialResumeDao {

    @Override
    public List<MaterialResume> pageResumeList(Map<String, Object> queryParam) {

        return baseMapper.pageResumeList(queryParam);
    }

    @Override
    public int getResumeCount(Map<String, Object> queryParam) {
        return baseMapper.getResumeCount(queryParam);
    }

    @Override
    public void addResume(MaterialResume materialResume) {
        baseMapper.insert(materialResume);
    }

    @Override
    public void updateResume(MaterialResume materialResume) {
        baseMapper.updateById(materialResume);
    }

    @Override
    public void deleteResume(String id) {
        baseMapper.deleteById(id);
    }

    @Override
    public List<MaterialResume> getMaterialResume(String material, String region) {
        return baseMapper.getMaterialResume(material,region);
    }

    @Override
    public void batchAddResume(List<MaterialResume> list) {
        baseMapper.batchAddResume(list);
    }

    @Override
    public List<MaterialResume> getBatchMaterialResume(List<String> materials, String region, String startTime) {
        return null;
    }

    @Override
    public void deleteBatchResumeByMaterial(List<String> materials, String region, String replaceTime) {
        baseMapper.deleteBatchResumeByMaterial(materials,region,replaceTime);
    }

    @Override
    public MaterialResume getMaterialResumeBySource(String sourceId) {
        return baseMapper.getMaterialResumeBySource(sourceId);
    }

}
